package com.rick.demo.mywebsocket.controller;

import com.rick.demo.mywebsocket.entities.Dealer;
import com.rick.demo.mywebsocket.server.MyWebSocketServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;


@RestController("/v{version}/discount")
@Slf4j
public class DiscountMapController {


    @Autowired
    private MyWebSocketServer webSocketServer;

    @PostMapping("/list4s")
    public void sentList4s(@RequestBody List<Dealer> deaters){

    }

    @PostMapping("/poi")
    public List<Dealer> getd(@RequestBody Map<String,String> param){

//        List<Dealer> dealers = dataServer.requestAll4s(param);
//        log.info(dealers.toString());
//        return dealers;
        return null;
    }

}
